com.supermap.ar.areffect.utils
Class VideoEffectViewHelper
- java.lang.Object
-
- com.supermap.ar.areffect.utils.VideoEffectViewHelper
-
public class VideoEffectViewHelper extends java.lang.ObjectVideo effects View AssistantUsed during initialization to set the view size
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVideoEffectViewHelper.SettingUse thesetSize(View, float)setting
-
Constructor Summary
Constructors Constructor and Description VideoEffectViewHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static voidmoveToXY(android.view.MotionEvent event, BubbleView bubbleView, EffectView efView)Move the bubble window near the XY value of the eventstatic voidsetSize(android.content.Context context, VideoEffectView videoEffectView, float ratio)Deprecated.static voidsetSize(android.view.View view, float ratio)Sets the width and height of the effect view based on the width and height ratio Ensure that video is maximized in the interfacestatic voidsetSize(android.view.View view, float ratio, int width, int height)Sets the width and height of the effect view based on the width and height ratio Ensure that video is maximized in the interfacestatic voidsetSizeByMediaPlayer(android.view.View view, MediaPlayer mediaPlayer)Sets Size By MediaPlayer
-
-
-
Method Detail
-
setSize
@Deprecated public static void setSize(android.content.Context context, VideoEffectView videoEffectView, float ratio)Deprecated.根据宽高比例设置特效视图的宽高值确保video能在界面中最大化显示
- Parameters:
context- ContextvideoEffectView- 特效视图ratio- 宽高比例
-
setSize
public static void setSize(android.view.View view, float ratio)Sets the width and height of the effect view based on the width and height ratioEnsure that video is maximized in the interface
- Parameters:
view-ratio-
-
setSize
public static void setSize(android.view.View view, float ratio, int width, int height)Sets the width and height of the effect view based on the width and height ratioEnsure that video is maximized in the interface
- Parameters:
view-ratio-
-
moveToXY
public static void moveToXY(android.view.MotionEvent event, BubbleView bubbleView, EffectView efView)Move the bubble window near the XY value of the event- Parameters:
event- Gesture eventbubbleView-BubbleViewbubble windowefView- Effect view
-
setSizeByMediaPlayer
public static void setSizeByMediaPlayer(android.view.View view, MediaPlayer mediaPlayer)Sets Size By MediaPlayer- Parameters:
view-mediaPlayer-
-
-